package yue.shen.android.demo

import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch

class CoroutineScopeActivity1ViewModel : ViewModel() {


    private val data = liveData { emit(loadData()) }

    private val data1 = liveData<String> { viewModelScope.launch { loadData() } }

    private suspend fun loadData(): String {
        return ""
    }
}
